import {request} from "@/utils/request";

/* 加载疵点配置 */
export function loadFlawConfigData(data, callBack) {
    return request({
        url: '/cloth_flaw/flaws',
        method: 'get',
        data,
        isYarn: true,
    }, callBack);
}

/* 加载疵点 按坯布ID */
export function loadFlawByTaskData(data, callBack) {
    return request({
        url: '/cloth_flaw/list_flaw_by_task',
        method: 'get',
        data,
        isYarn: true,
    }, callBack);
}

/* 加载疵点 按坯布ID */
export function loadFlawByGreyClothData(data, callBack) {
    return request({
        url: '/cloth_flaw/list_flaw_by_grey_cloth',
        method: 'get',
        data,
        isYarn: true,
    }, callBack);
}